﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FbKPI.Model;
using FbKPI.Controller;

namespace FbKPI.Facade.Validator
{
    public class UoMValidator
    {
        public string ValidateOnSave(UoM UoMs)
        {
            string msg = "OK";
            if (UoMs.Description.Trim().Length <= 0)
                msg = "Please Enter UoM Description";
            return msg;
        }

        public string ValidateOnUpdate(UoM UoMs)
        {
            string msg = "OK";
            if (UoMs.Description.Trim().Length <= 0)
                msg = "Please Enter UoM Description";
            return msg;
        }
    }
}